package top.infopub.model.cap;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import top.infopub.generic.GenericEntity;

import java.math.BigDecimal;
import java.util.Date;

/** 融资还款子表(CAP_FINANCE_REPAY_SUB) **/
public class FinanceRepaySub extends GenericEntity  {
	private static final long serialVersionUID = 1L;

	/** SGUID */
	private String id;

	/** 融资还款主表ID */
	private String finRepayId;

	/** 放款主表ID */
	private String loanFinId;

	/** 已还金额 */
	private BigDecimal paidAmt;

	/** 剩余金额 */
	private BigDecimal chargeAmt;

	/** 本次还款金额 */
	private BigDecimal thisRepayAmt;

	/** 添加人 */
	private String addBy;

	/** 添加时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date addTime;

	/** 最后修改人 */
	private String uptBy;

	/** 最后修改时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date uptTime;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date repayDate;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFinRepayId() {
		return finRepayId;
	}

	public void setFinRepayId(String finRepayId) {
		this.finRepayId = finRepayId;
	}

	public String getLoanFinId() {
		return loanFinId;
	}

	public void setLoanFinId(String loanFinId) {
		this.loanFinId = loanFinId;
	}

	public BigDecimal getPaidAmt() {
		return paidAmt;
	}

	public void setPaidAmt(BigDecimal paidAmt) {
		this.paidAmt = paidAmt;
	}

	public BigDecimal getChargeAmt() {
		return chargeAmt;
	}

	public void setChargeAmt(BigDecimal chargeAmt) {
		this.chargeAmt = chargeAmt;
	}

	public BigDecimal getThisRepayAmt() {
		return thisRepayAmt;
	}

	public void setThisRepayAmt(BigDecimal thisRepayAmt) {
		this.thisRepayAmt = thisRepayAmt;
	}

	public String getAddBy() {
		return addBy;
	}

	public void setAddBy(String addBy) {
		this.addBy = addBy;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getUptBy() {
		return uptBy;
	}

	public void setUptBy(String uptBy) {
		this.uptBy = uptBy;
	}

	public Date getUptTime() {
		return uptTime;
	}

	public void setUptTime(Date uptTime) {
		this.uptTime = uptTime;
	}

	public Date getRepayDate() {
		return repayDate;
	}

	public void setRepayDate(Date repayDate) {
		this.repayDate = repayDate;
	}
}